<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
    {{-- 默认使用谷歌浏览器内核--}}
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta name="generator" content="YMTC! v1" />
    <meta name="author" content="YMTC! Team and XiaoYao UI Team" />
    <meta name="copyright" content="2003-2024 XiaoYao Cloud." />

    <title>@if(! empty($header)){{ $header }} | @endif {{ YmPhp\Admin\Admin::title() }}  -  Powered by YMTC</title>

    @if(! config('admin.disable_no_referrer_meta'))
        <meta name="referrer" content="no-referrer"/>
    @endif

    @if(! empty($favicon = YmPhp\Admin\Admin::favicon()))
        <link rel="shortcut icon" href="{{ $favicon }}">
    @endif

    {!! admin_section(YmPhp\Admin\Admin::SECTION['HEAD']) !!}

    {!! YmPhp\Admin\Admin::asset()->headerJsToHtml() !!}

    {!! YmPhp\Admin\Admin::asset()->cssToHtml() !!}
</head>
<style>
    @media (max-width: 768px) {
        .app-content {
            margin-left: 0!important;
        }
        .sub-nav {
            left: 0px;
        }
    }
    /* 定义滚动条的样式 */
    ::-webkit-scrollbar {
        width: 10px; /* 设置滚动条的宽度 */
        height: 10px; /* 设置滚动条的高度 */
    }
    /* 定义滚动条的滑块样式 */
    ::-webkit-scrollbar-thumb {
        background-color: #888; /* 设置滑块的背景色 */
        border-radius: 5px; /* 设置滑块的圆角 */
    }
    /* 定义滚动条轨道的样式 */
    ::-webkit-scrollbar-track {
        background-color: #eee; /* 设置滚动条轨道的背景色 */
        border-radius: 5px; /* 设置轨道的圆角 */
    }
    /* 定义滚动条的边框样式 */
    ::-webkit-scrollbar-thumb:hover {
        background-color: #555; /* 设置滑块的悬停背景色 */
    }
    /* 隐藏滚动条 */
    ::-webkit-scrollbar {
        /*display: none; !* 隐藏滚动条 *!*/
    }

</style>
@if(YmPhp\Admin\Admin::guard()->user())
    @extends('admin::layouts.container')
@else
    <script>
        if (window.location.href.indexOf('login') === -1) {
            window.location.href = "{{ admin_url('auth/login') }}";
        }
    </script>
@endif
